#-------------------------------------------------
#
# Project created by QtCreator 2022-11-20T10:35:05
#
#-------------------------------------------------

QT       += core gui


greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = rfid_demo_qt
TEMPLATE = app


# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
contains(QT_ARCH,arm64){
    DESTDIR="../rfid_demo_qt/MyBuild/arm64/"
}else{
    DESTDIR="../rfid_demo_qt/MyBuild/x86_64/"
}

#No Optimize 不优化
QMAKE_CXXFLAGS_RELEASE += -O0
QMAKE_CFLAGS_RELEASE += -O0

#No Optimize 不优化 -g:添加调试
#QMAKE_CXXFLAGS_RELEASE += -O0 -g
#QMAKE_CFLAGS_RELEASE += -O0 -g

contains(QT_ARCH,arm64){
    LIBS += \
#        -L/home/cxman/RFID/rfid_demo_qt/MyBuild/arm64/ -lGZAE_rfid \
            -L/home/zengkai/Downloads/RFID-SDK-Linux/rfid.sdk.linux/rfid_demo_qt_v1.1.3/rfid_demo_qt/MyBuild/x86_64/ -lGZAE_rfid \
}else{
    LIBS += \
#        -L/home/cxman/RFID/rfid_demo_qt/MyBuild/x86_64/ -lGZAE_rfid \
            -L/home/zengkai/Downloads/RFID-SDK-Linux/rfid.sdk.linux/rfid_demo_qt_v1.1.3/rfid_demo_qt/MyBuild/x86_64/ -lGZAE_rfid \
}




# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

CONFIG += c++11


INCLUDEPATH += \
            ./c++_lib_inc \

SOURCES += \
        main.cpp \
        mainwindow.cpp \
        ultils.cpp \
        dev_reader_uhf.cpp \
        dev_reader_hf.cpp \
        ae_device.cpp \
        frmsetting.cpp \
        invenparams.cpp \
        frmrcd_lsgcc.cpp \
        dev_lsg_cc.cpp

HEADERS += \
        mainwindow.h \
        ./c++_lib_inc/rfidlib_reader.h \
        tag.h \
        ultils.h \
        dev_reader_uhf.h \
        dev_reader_hf.h \
        ae_device.h \
        frmsetting.h \
        invenparams.h \
        tag_uhf.h \
        tag_hf.h \
        frmrcd_lsgcc.h \
        dev_lsg_cc.h \
        record_alarm.h \
        record_day.h \
        record_realtime.h \
        scan_record.h \
        MyCriticalSection.h

FORMS += \
        mainwindow.ui \
    frmsetting.ui \
    frmrcd_lsgcc.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
